package com.ilz.publictemplatedemo.ui;

import com.ilz.publictemplatedemo.R;
import com.ilz.publictemplatedemo.base.BaseActivity;
import com.ilz.publictemplatedemo.view.ExitDialog;

public class HomeActivity extends BaseActivity {

    @Override
    protected int initLayout() {
        return R.layout.activity_home;
    }

    @Override
    protected void initData() {

    }

    @Override
    protected void initListener() {

    }


    @Override
    public void onBackPressed() {
        finishA();
    }

    private void finishA() {
        ExitDialog dialog = new ExitDialog(this);
        dialog.show();
        dialog.setExitListener(new ExitDialog.ExitListener() {
            @Override
            public void onClickYes() {
                finish();
            }

            @Override
            public void onClickNo() {

            }
        });
    }
}
